package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.VoicePublish;
import org.bson.types.ObjectId;

public interface VoicePublishApi {
    /**
     * 保存语音到语音发布表
     * @param userId
     * @param soundUrl
     * @return 语音记录的主键id
     */
    ObjectId saveVoice(Integer userId, String soundUrl);

    /**
     * 根据用户id推荐语音
     */
    VoicePublish queryVoice(Long currentUserId);
}
